<%@ page language="java"  pageEncoding="UTF-8" contentType="text/html;charset=utf-8"%>

<%@ include file="/_taglib.jsp" %>

<%@ include file="/_navbar.jsp" %>

<section class="content">
	<div class="container" id="data-container">
		<div class="col-md-11">
			<!-- 
			<form role="form" action="sys/dictionary/dict/save" method="post" onsubmit="return ajaxFormSubmit(this,'sys/dictionary/dict/list')">
			-->
			<form role="form" action="sys/dictionary/dict/save" method="post" onsubmit="return ajaxFormSubmit(this,'sys/dictionary/dictType/edit/${dict.dict_type}')">
				<!-- general form elements disabled -->
				<div class="box">
					<div class="box-body">

						<div class="row">
                            <div class="col-xs-3">
                            	<input type="hidden" id="dict__dict_type" name="dict.dict_type" class="query-field" op="eq" value="${dict.dict_type}">
								<div class="form-group">
									<label>字典类型</label>                             	
	                            	<div class="input-group">
		                             		<c:if test="${empty dict.dict_type}">
				                             	<input type="text" id="f_dict__dict_type" name="f_dict_dict_type" class="query-field form-control suggest" 
				                             		searchClass="org.jfk.sys.dictionary.DictType" searchField="cnName" 
				                             		bringbackField="id" placeholder="字典类型" op="eq" value='<j:kv key="${dict.dict_type}" column="cnName" table="jfk_dict_type"/>'>
		                             			<span class="input-group-addon" lookupUrl="sys/dictionary/dictType/list" id="l_dict__dict_type"><i class="fa fa-ellipsis-v"></i></span>
		                             		</c:if>
		                             		<c:if test="${!empty dict.dict_type}">
				                             	<input type="text" id="f_dict__dict_type" name="f_dict_dict_type" class="query-field form-control" 
				                             		value='<j:kv key="${dict.dict_type}" column="cnName" table="jfk_dict_type"/>' readonly>
		                             		</c:if>
		                             	
									</div>
								</div>
                            </div>
							<div class="col-xs-3">
								<!-- text input -->
								<div class="form-group">
									<label>编码（${dict.dict_type}）</label> 
									<input name="dict.id" value="${dict.id}" type="text" class="form-control" 
										<c:if test="${!empty dict.id}">readonly</c:if>
										placeholder="Enter ...">
								</div>
							</div>
							<div class="col-xs-3">
								<div class="form-group">
									<label>值</label> 
									<input name="dict.dict_value" value="${dict.dict_value}" type="text"
										class="form-control" placeholder="Enter ...">
								</div>
							</div>
							<!-- 
                            <div class="col-xs-3">
                            	<input type="hidden" id="dict__creator" name="dict.creator" class="query-field" op="eq" value="${dict.creator}">
								<div class="form-group">
									<label>创建人</label>                             	
	                            	<div class="input-group">
		                             	<input type="text" id="f_dict__creator" name="f_dict_creator" class="query-field form-control suggest" 
		                             		searchClass="org.jfk.sys.user.User" searchField="loginName" 
		                             		bringbackField="id" placeholder="创建人" op="eq" value="${dict.creator_loginName}">
		                             	<span class="input-group-addon" lookupUrl="sys/user/list" id="l_dict__creator"><i class="fa fa-ellipsis-v"></i></span>
									</div>
								</div>
                            </div>
                             -->
							<div class="col-xs-3">
								<div class="form-group">
									<label>数据状态</label> 
									<j:select dictType="dataStatus" id="dict.status" name="dict.status" label="数据状态"/>
								</div>
							</div>
						</div>
						<div class="row">
							<div class="col-xs-12">
								<!-- textarea -->
								<div class="form-group">
									<label>描述</label>
									<textarea name="dict.description" class="form-control" rows="3" placeholder="Enter ...">${dict.description}</textarea>
								</div>
							</div>
						</div>


					</div>					<!-- /.box-body -->
					<div class="box-footer" align="center">
						<button type="submit" class="btn btn-primary">保存</button>
					</div>
				</div>				<!-- /.box -->
			</form>
		</div>
	</div>
</section>
<%@ include file="/_edit_js.jsp" %>
